from base import Base
from time import sleep
from selenium.webdriver.common.by import By
class SouSuoPage(Base):
    sousuokuang=(By.ID,'cn.xuexi.android:id/text')
    shurukuang=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.LinearLayout[2]/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[1]/android.widget.LinearLayout/android.view.ViewGroup/android.widget.FrameLayout[1]/android.widget.TextView')
    dy=(By.XPATH,'//android.view.View[@text="全部"]')
    dy2='new UiSelector().text("听音频")'
    dy3=(By.XPATH,'//android.view.View[@content-desc="强国融媒矩阵"]/android.view.View[2]')
    def sousuoyewu(self):
        self.find_ele(self.sousuokuang).click()
        sleep(2)
        self.find_ele(self.shurukuang).click()
        sleep(2)
